package ticketmachine.logic.taxCalculatorAdapters;

import ticketmachine.logic.Ticket;

public class TaxCalculatorAdapter implements ITaxCalculator {

	@Override
	public float addTaxesToTicket(Ticket t) {
		float price=t.getPrice();
		t.setTaxes((float)(price*0.07));


                //TEST
                System.out.println("Calculating taxes for ticket");
                System.out.println("Ticket price without taxes is " + price);
                System.out.println("Taxes for the ticket are" + t.getTaxes());

                float priceWithTaxesTest = price + t.getTaxes();

                System.out.println("Ticket price with taxes is " + priceWithTaxesTest);
                
		return t.getTaxes();
	}
	

}
